<!DOCTYPE HTML>
<html xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://ogp.me/ns#" xml:lang="th" lang="th">
<head>
	<meta charset="utf-8">
    <title><?php echo $seo_title;?></title>
    <meta name="title" content="<?php echo htmlspecialchars($seo_title, ENT_COMPAT, 'UTF-8');?>" />
    <meta name="keywords"  content="<?php echo htmlspecialchars($seo_keyword, ENT_COMPAT, 'UTF-8');?>" />
    <meta name="description" content="<?php echo addslashes($seo_description);?>" />
    <meta property="fb:app_id" content="<?php echo $fb_api;?>" />
    <meta property="og:type" content="<?php echo $fb_type;?>" />
	<meta name="googlebot" content="index,follow"/>
	<meta name="robots" content="index, follow, all"/>
	<meta name="author" content="You2Play.com"/>
	<meta http-equiv="Cache-Control" content="no-store">
	<meta http-equiv="Pragma" content="no-cache">
	<meta http-equiv="Expires" content="-1"> 	
	<?php if(!empty($fb_title)):?>
		<meta property="og:title" content="<?php echo htmlspecialchars($fb_title, ENT_COMPAT, 'UTF-8');?>" />
	<?php endif;?>
	<?php if(!empty($fb_image)):?>
		<meta property="og:image" content="<?php echo $fb_image;?>" />
		<link rel="image_src" href="<?php echo $fb_image;?>" />	
	<?php endif;?>
	<?php if(!empty($fb_description)):?>
		<meta property="og:description" content="<?php echo htmlspecialchars($fb_description, ENT_COMPAT, 'UTF-8');?>" />
	<?php endif;?>
	<?php if(!empty($fb_media)):?>
  		<meta property="og:video" content="<?php echo $fb_media;?>" />
      	<meta property="og:video:type" content="application/x-shockwave-flash" />
      	<meta property="og:video:width" content="1280" />
      	<meta property="og:video:height" content="720" />
		<link rel="video_src" href="<?php echo $fb_media;?>" />	
		<meta name="video_type" content="application/x-shockwave-flash" />	
	<?php endif;?>	
	<link rel="icon" href="<?php echo image_asset_url('../css/images/favicon.ico');?>" type="image/x-icon" />
	<link rel="shortcut icon" href="<?php echo image_asset_url('../css/images/favicon.ico');?>" type="image/x-icon" />
	<script type="text/javascript">
	 	/*Set Initail*/
		//document.domain = 'you2play.com';
		var web_path = '<?php echo base_url();?>';
		var protocol = (window.location.protocol == "https:" ? "https":"http");
		if(protocol == "https") window.location.href = window.location.href.replace(protocol,'http');
	</script>
    <!--Load Js-->
    <?php 
    if(!empty($js)):
  		foreach(array_unique($js) as $value):
   			if(file_exists(realpath(@$this->config->item('path_asset_url').'assets/js/'.$value)) && !empty($value)):
   				echo js_asset($value."?v=2.6")."\n";				
     		endif;
		endforeach;
    endif;
    ?>
    <!--Load Css-->
    <?php 
    if(!empty($css)):
		foreach(array_unique($css) as $value):
			if(file_exists(realpath(@$this->config->item('path_asset_url').'assets/css/'.$value)) && !empty($value)):
				echo css_asset($value."?v=2.6",'', array('media'=>'all'))."\n";			
			endif;
		endforeach;
    endif;
    ?>
    <!--Load External Js-->
    <?php
    if(!empty($external_js)):
	?>
	<script type="text/javascript" language="javascript">
    	<?php echo $external_js;?>
	</script>
	<?php
    endif;
    ?>
    <!--Load External Css-->
    <?php
    if(!empty($external_css)):
	?>
	<style type="text/css">
    	<?php echo $external_css;?>
	</style>
	<?php
    endif;
    ?>		
</head>
<body>	
	<!--Wrapper-->
	<div id="wrapper">
		<div id="container">
			<!--Header-->
			<div id="header">
				<a id="you2play_logo" href="<?php echo $main_url;?>"></a>
			</div>
			<!--Top Menu-->
			<div id="top_menu">
				<ul>
					<li><a title="หน้าแรก" href="<?php echo $main_url;?>" class="topMenu home">หน้าแรก</a></li>
					<li>
						<a title="สถานีเพลง" href="<?php echo $playlist_url;?>" class="topMenu playlist">สถานีเพลง</a>
					</li>
					<li>
						<a title="ศิลปิน" href="<?php echo $artist_url;?>" class="topMenu artist">ศิลปิน</a>
						<?php if(isset($notification) && !empty($notification['artist_notification'])) echo "<span class=\"notification\">".$notification['artist_notification']."</span>";?>
					</li>
					<li>
						<a title="เพลง" href="<?php echo $music_url;?>" class="topMenu music">เพลง</a>
						<?php if(isset($notification) && !empty($notification['music_notification'])) echo "<span class=\"notification\">".$notification['music_notification']."</span>";?>
					</li>
					<li>
						<a title="คอร์ดเพลง" href="<?php echo $chord_url;?>" class="topMenu chord">คอร์ดเพลง</a>
						<?php if(isset($notification) && !empty($notification['chords_notification'])) echo "<span class=\"notification\">".$notification['chords_notification']."</span>";?>
						<!--<span class="new"></span>-->
					</li>
					<li>
						<a title="วีดีโอ" href="<?php echo $video_url;?>" class="topMenu video">วีดีโอ</a>
						<?php if(isset($notification) && !empty($notification['video_notification'])) echo "<span class=\"notification\">".$notification['video_notification']."</span>";?>
					</li>
					<li>
						<a title="ภาพยนตร์" href="<?php echo $movie_url;?>" class="topMenu movie">ภาพยนตร์</a>
						<?php if(isset($notification) && !empty($notification['movie_notification'])) echo "<span class=\"notification\">".$notification['movie_notification']."</span>";?>
					</li>
					<li>
						<a title="ข่าว/บทความ" href="<?php echo $news_url;?>" class="topMenu news" style="font-size:12px;">ข่าว/บทความ</a>
						<?php if(isset($notification) && !empty($notification['news_notification'])) echo "<span class=\"notification\">".$notification['news_notification']."</span>";?>
					</li>
					<li>
						<a title="แฟชั่น" href="<?php echo $fashion_url;?>" class="topMenu fashion">แฟชั่น</a>
						<?php if(isset($notification) && !empty($notification['fashion_notification'])) echo "<span class=\"notification\">".$notification['fashion_notification']."</span>";?>
					</li>
					<li>
						<a title="แกลเลอรี่" href="<?php echo $gallery_url;?>" class="topMenu shop">แกลเลอรี่</a>
						<?php if(isset($notification) && !empty($notification['gallery_notification'])) echo "<span class=\"notification\">".$notification['gallery_notification']."</span>";?>
					</li>
				</ul>
				<!--Top Search-->
				<div id="top_search">
					<!--Social-->
					<div class="social">
						<!--True Hits-->
						<span id="true_hits">					
							<iframe src="<?php echo base_url('truehitsstat.php');?>" width="14" height="17" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" allowtransparency="true" style="visibility:hidden;"></iframe>
						</span>						
						<a target="_blank" title="facebook you2play" href="http://www.facebook.com/you2play">
                           <?php echo image_asset('default/fb.png','',array('width' => 24,'height' => 24));?>
                        </a>
                        <a target="_blank" title="twitter you2play" href="http://twitter.com/you2play">
						   <?php echo image_asset('default/tt.png','',array('width' => 24,'height' => 24));?>
                        </a>
					</div>
					<!--Text Search-->
					<?php //echo $this->router->class;?>
					<input type="text" name="txtSearch-all" autocomplete="off" placeholder="ค้นหาอะไรก็เจอ..."/>
				</div>
				<!--You2play Tv Link-->
				<a id="top_you2play_tv" href="http://www.you2play.com/live"><?php echo image_asset('default/you2play_live_tv.png','',array('width' => 79,'height' => 59));?></a>
			</div>
			<!--Nav Menu-->
			<?php if(isset($top_sub_menu) && !empty($top_sub_menu)) echo $top_sub_menu;?>
			<!--Content-->
			<div id="content">
				<?php echo $this->load->view($content);?>
			</div>		
		</div>
	</div>
	<!--Footer-->
	<div id="footer_external">
		<div id="footer">
			<div id="footer-logo-detail">
				<ul>
					<li class="first"><a href="<?php echo $main_url;?>" title="หน้าแรก">หน้าแรก</a>|</li>
					<li><a href="<?php echo $artist_url;?>" title="">ศิลปิน</a>|</li>
					<li> <a href="<?php echo $music_url;?>" title="ฟังเพลง">ฟังเพลง</a>|</li>
					<li><a href="<?php echo $video_url;?>" title="วีดีโอ">วีดีโอ</a>|</li>
					<li><a href="<?php echo $main_url.'live';?>" title="you2playTV">ดูทีวี</a>|</li>
					<li><a href="<?php echo $movie_url;?>" title="ดูหนัง">ดูหนัง</a>|</li>
					<li><a href="<?php echo $news_url;?>" title="ข่าวและกิจกรรม">ข่าวบันเทิง</a>|</li>
					<li><a href="<?php echo $fashion_url;?>" title="แฟชั่น">แฟชั่น</a>|</li>
					<!--<li><a href="<?php echo $main_url.'member/profile';?>" title="มุมสมาชิก">มุมสมาชิก</a>|</li>-->
					<li><a href="<?php echo $main_url.'career';?>" title="ร่วมงานกับ You2Play">ร่วมงานกับ You2Play</a>|</li>
					<li><a href="mailto:webmaster@you2play.com" title="ติดต่อเรา">ติดต่อเรา</a>|</li>
					<li><a href="<?php echo $main_url.'advertising';?>" title="ติดต่อโฆษณา" class="advertising">ติดต่อโฆษณา</a></li>
				</ul>
				<div>
					หากคุณต้องการ แนะนำ ติ-ชม หรือมีข่าวสารที่น่าสนใจต้องการนำเสนอผ่านเว็บไซต์ <a title="ฟังเพลง" href="http://www.you2play.com">you2play.com</a> ติดต่อมาที่ <a href="mailto:webmaster@you2play.com" title="webmaster@you2play.com" target="_blank">webmaster@you2play.com</a>			
				</div>
			</div>	
	 	</div>
	</div>
	<div id="toTop">^ Back to Top</div>	
</body>
</html>